package com.gwz.sys.mapper;

import java.util.List;

import com.gwz.sys.domain.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    User queryUserByLoginName(String loginname);
    
    List<User> queryAllUser(User user);
    //查询最大的排序码
	int queryMaxOrderNumber();

	void saveUserRole(Integer rid, Integer uid);

	void deleteUserRoleByUserId(Integer uid);
	
} 